using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.Collections.ObjectModel;
namespace   CommunitySystem.Model
{
    [Serializable]
    [DataContract]
	public class UserInfo
	{
		private System.Int32 _UserID;
        [DataMember]
		public System.Int32 UserID
		{
			get{return _UserID;}
			set{_UserID = value;}
		}
		private System.String _LoginName;
        [DataMember]
		public System.String LoginName
		{
			get{return _LoginName;}
			set{_LoginName = value;}
		}
		private System.String _PassWord;
        [DataMember]
		public System.String PassWord
		{
			get{return _PassWord;}
			set{_PassWord = value;}
		}
		private System.String _RealName;
        [DataMember]
		public System.String RealName
		{
			get{return _RealName;}
			set{_RealName = value;}
		}
		private System.String _Phone;
        [DataMember]
		public System.String Phone
		{
			get{return _Phone;}
			set{_Phone = value;}
		}
		private System.String _Email;
        [DataMember]
		public System.String Email
		{
			get{return _Email;}
			set{_Email = value;}
		}
		private System.Byte? _Gender;
        [DataMember]
		public System.Byte? Gender
		{
			get{return _Gender;}
			set{_Gender = value;}
		}
		private System.DateTime? _Birthday;
        [DataMember]
		public System.DateTime? Birthday
		{
			get{return _Birthday;}
			set{_Birthday = value;}
		}
		private System.DateTime? _CreateDate;
        [DataMember]
		public System.DateTime? CreateDate
		{
			get{return _CreateDate;}
			set{_CreateDate = value;}
		}
		private System.Int32? _StreetCode;
        [DataMember]
		public System.Int32? StreetCode
		{
			get{return _StreetCode;}
			set{_StreetCode = value;}
		}
		private System.String _OrgCode;
        [DataMember]
		public System.String OrgCode
		{
			get{return _OrgCode;}
			set{_OrgCode = value;}
		}
		private System.Int32? _RoleID;
        [DataMember]
		public System.Int32? RoleID
		{
			get{return _RoleID;}
			set{_RoleID = value;}
		}

        private ObservableCollection<PermissionBase> _Permission = new ObservableCollection<PermissionBase>();
        [DataMember]
        public ObservableCollection<PermissionBase> Permissions
        {
            get { return _Permission; }
            set { _Permission = value; }
        }
        
	}
}
